<?php

declare(strict_types=1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

class SellerStatementItem extends Model
{
    use SoftDelete;

    protected $name = 'seller_statement_item';

    protected $autoWriteTimestamp = 'datetime';

    public function statement()
    {
        return $this->belongsTo(SellerStatement::class, 'statement_id');
    }

    public function order()
    {
        return $this->belongsTo(Order::class, 'order_id');
    }
}
